package com.ynet.user.service.impl;

import com.alibaba.dubbo.config.annotation.Service;

import com.ynet.user.bean.UserEntity;
import com.ynet.user.service.UserServiceMy;

import com.ynet.user.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * @ClassName
 * @Description
 * @Author liwq
 * @Date 2021/1/18 17:28
 * @Version 1.0
 */
@Service
public class UserServiceImpl implements UserServiceMy {

    @Autowired
    private UserMapper userMapper;

    @Override
    public UserEntity getUserById(Integer id) {
        return userMapper.getUserById(id);
    }

    @Override
    public String sayHello(String name) {
        return "hello"+name;
    }
}
